#ifndef FRAMEBUFFER_H
#define FRAMEBUFFER_H

#include <core/object.h>

namespace yam3d
{
namespace render
{

    class FrameBuffer : public core::Object
    {
    public:
        FrameBuffer( int width, int height );
        virtual ~FrameBuffer();

        void setAsRenderTarget( bool state );
        bool isComplete();
    private:
        unsigned int m_fbo;
        unsigned int m_depthBuffer;
        int m_width;
        int m_height;

        FrameBuffer();
        FrameBuffer(const FrameBuffer&);
        FrameBuffer& operator=(const FrameBuffer&);
    };

}
}
#endif // FRAMEBUFFER_H
